package com.yu1996.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu1996.common.utils.PageUtils;
import com.yu1996.gulimall.product.entity.ProductAttrValueEntity;

import com.yu1996.gulimall.product.vo.BaseAttrs;
import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author yu
 * @email 1798121567@qq.com
 * @date 2021-08-04 17:31:00
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

  /**
   * 批量保存spu的规格参数
   * @param id
   * @param baseAttrs
   */
  void saveAttrs(Long id, List<BaseAttrs> baseAttrs);
  /** 查询商品spu规格参数列表 */
  List<ProductAttrValueEntity> baseAttrListForSpu(Long spuId);
  /** 修改商品spu规格参数列表 */
  void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> entities);
}

